<!--
  描述：服务分类-产品分类关联详情页
  @author tanghongjun
  @since 2020-08-25 14:35:13
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss2">
    <title>选择产品组</title>
</head>
<body>

<div class="layui-fluid">
    <blockquote class="layui-crumb">
        后台产品>产品分类>
        <a lay-href="/serv/categ/ass/list.action">分类关联</a>>
        <a th:href="|/serv/categ/ass/addEditView.action?groupId=${servAssCategory.groupId}|">产品组</a>

    </blockquote>
    <div class="layui-card">

        <div th:replace="servasscategory/_tab :: tab"></div>
        <div class="layui-card-body">
            <form method="post" action="" class="layui-form" lay-filter="zmn-form">

                <input type="hidden" name="groupId" th:value="${servAssCategory.groupId}"/>

                <div class="layui-form-item">
                    <label class="layui-form-label layui-form-required">C端产品组：</label>
                    <div class="layui-input-block">
                        <div class="layui-input-inline" style="width: 390px">
                            <select id="perProductGroupcId" name="perProductGroupcId" lay-verify="required" lay-search>
                                <option value="">-选择-</option>
                                <option th:each="bizType:${bizTypeCList}" th:value="${bizType.value}"
                                        th:selected="${servAssCategory.perProductGroupcId == bizType.value}"
                                        th:text="${bizType.text}"/>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label layui-form-required">F端产品组：</label>
                    <div class="layui-input-block">
                        <div class="layui-input-inline" style="width: 390px">
                            <select id="perProductGroupfId" name="perProductGroupfId" lay-verify="required" lay-search>
                                <option value="">-选择-</option>
                                <option th:each="bizType:${bizTypeFList}" th:value="${bizType.value}"
                                        th:selected="${servAssCategory.perProductGroupfId == bizType.value}"
                                        th:text="${bizType.text}"/>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label layui-form-required">B端产品组：</label>
                    <div class="layui-input-block">
                        <div class="layui-input-inline" style="width: 390px">
                            <select id="perProductGroupbId" name="perProductGroupbId" lay-verify="required" lay-search>
                                <option value="">-选择-</option>
                                <option th:each="bizType:${bizTypeBList}" th:value="${bizType.value}"
                                        th:selected="${servAssCategory.perProductGroupbId == bizType.value}"
                                        th:text="${bizType.text}"/>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">生效日期：</label>
                    <div class="layui-input-block">
                        <div class="layui-input-inline" style="width: 390px">
                            <input type="text" name="perTime" class="layui-input" id="perTime"
                                   placeholder="yyyy-MM-dd" autocomplete="off">
                            <div class="layui-input-inline" style="width: 390px;color: red;">
                                <span>将在生效日期的0点生效，早于当前日期则立即生效，不填则默认次日0点生效</span>
                            </div>
                        </div>
                    </div>
                </div>


                <div class="layui-split">&nbsp;</div>
                <div class="layui-form-item layui-layout-admin">
                    <div class="layui-input-block">
                        <div class="layui-footer" style="left: 0;">
                            <button class="layui-btn" lay-submit="" lay-filter="zmn-form-submit">提交</button>
                            <a href="/serv/categ/ass/list.action"
                               class="layui-btn layui-btn-primary" text="取消">取消</a>

                        </div>
                    </div>
                </div>

            </form>
        </div>
    </div>

</div>

<script type="text/javascript" th:inline="javascript">

    var json = {
        servAssCategory: [[${servAssCategory}]]
    };

    layui.config({
        base: "/static/lay/",
        version: "2020108261430"
    }).extend({
        index: "lib/index",
        plat_servAssCategory_detail: "servcategory/zmn.plat.serv.ass.categ.edit",
    }).use(['index', 'plat_servAssCategory_detail']);

</script>
</body>
</html>